]> dgit.raspbian.org Git - gnome-shell.git/commit
status/keyboard: Adapt to external source of keyboard layout
authorJonas Ådahl <jadahl@gmail.com>
Fri, 3 Oct 2025 15:02:37 +0000 (17:02 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 29 Jan 2026 15:10:52 +0000 (15:10 +0000)
commit0f90346872477d91a3e0be605a55bca1d163d735
tree0f00ba0fecf3ea4603edc262ee678ea65c78d9c6
parent515dc4dc7f9487763bce97f9d38c2d68d77e6065
status/keyboard: Adapt to external source of keyboard layout

This adapts to API changes that allow an external source (e.g. remote
desktop API user) to control the current keyboard layout. This is done
in two ways:

If the external keyboard source sets the keymap as "locked", the
indicator is fixed to the short name of the external source, and will
change the indicator label when the layout index is changed accordingly.
The builtin input sources are not selectable, and the keyboard selection
keybinding is disabled.

If the external keyboard source doesn't set the keymap as "locked",
whenever the current keymap is from an external source, it's indicated
as a non-sensitive but selected input source. Selecting another keyboard
layout overrides the one selected by the external entity.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3901>
js/misc/keyboardManager.js
js/ui/status/keyboard.js